package se.wangs.command.invoker;

import se.wangs.command.Command;

/**
 * -- coding: UTF-8 -- *
 *
 * @author wangs
 * @date 2023/12/14 15:43
 * @description 控制器，用于绑定命令
 */
public class SimpleRemoteController {
    Command command;

    public SimpleRemoteController() {}

    public void setCommand(Command command) {
        this.command = command;
    }

    public void buttonWasPressed() {
        command.execute();
    }
}
